package com.ruoyi.system.service.impl;
/**
 * ClassName: MsgServiceImpl <br/>
 * Description: <br/>
 * date: 2020/3/24 14:59<br/>
 *
 * @author Hesion<br />
 * @version
 * @since JDK 1.8
 */

import com.ruoyi.system.domain.Message;
import com.ruoyi.system.domain.SysNews;
import com.ruoyi.system.mapper.MsgMapper;
import com.ruoyi.system.service.IMsgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: ruoyi
 * @description:
 * @author: hesion
 * @create: 2020-03-24 14:59
 **/
@Service
public class MsgServiceImpl implements IMsgService {
    @Autowired
    MsgMapper msgMapper;

    @Override
    public Integer doPublish(Message msg) {
        return msgMapper.doPublish(msg);

    }

    @Override
    public List<Message> selectMsgList(Message message) {
        return msgMapper.selectMsgList(message);
    }

    @Override
    public Integer remove(String id) {
        return msgMapper.remove(id);
    }
}
